using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN RolesService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: RolesService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class RolesService : IRolesService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: RolesEntity</para>
		///</summary>
		public RolesEntity SelectOne(int Role_ID){
			RolesDAO dao = new RolesDAO();
			return dao.SelectOne(Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of RolesEntity</para>
		///</summary>
		public List<RolesEntity> SelectAll(){
			RolesDAO dao = new RolesDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			RolesDAO dao = new RolesDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of RolesEntity</para>
		///</summary>
		public List<RolesEntity> SelectAllFilter(string strFilter){
			RolesDAO dao = new RolesDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			RolesDAO dao = new RolesDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: RolesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(RolesEntity o){
			RolesDAO dao = new RolesDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: RolesEntity</para>
		/// <para>Output: RolesEntity</para>
		///</summary>
		public RolesEntity SaveRet(RolesEntity o){
			RolesDAO dao = new RolesDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of RolesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<RolesEntity> list){
			RolesDAO dao = new RolesDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of RolesEntity</para>
		/// <para>Output: List of RolesEntity</para>
		///</summary>
		public List<RolesEntity> SaveListRet(List<RolesEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: RolesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(RolesEntity o){
			RolesDAO dao = new RolesDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of RolesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<RolesEntity> list){
			RolesDAO dao = new RolesDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateRoleCode</para>
		/// <para>Input: NewRoleCode,Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateRoleCode(string NewRoleCode,int Role_ID){
			RolesDAO dao = new RolesDAO();
			return dao.UpdateRoleCode(NewRoleCode,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateRoleName</para>
		/// <para>Input: NewRoleName,Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateRoleName(string NewRoleName,int Role_ID){
			RolesDAO dao = new RolesDAO();
			return dao.UpdateRoleName(NewRoleName,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateRoleDescription</para>
		/// <para>Input: NewRoleDescription,Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateRoleDescription(string NewRoleDescription,int Role_ID){
			RolesDAO dao = new RolesDAO();
			return dao.UpdateRoleDescription(NewRoleDescription,Role_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateRoleType</para>
		/// <para>Input: NewRoleType,Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateRoleType(Byte NewRoleType,int Role_ID){
			RolesDAO dao = new RolesDAO();
			return dao.UpdateRoleType(NewRoleType,Role_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: RolesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(RolesEntity o){
			RolesDAO dao = new RolesDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int Role_ID){
			RolesDAO dao = new RolesDAO();
			return dao.DeleteByID(Role_ID);
		}
		#endregion

		#region Select,delete by Role_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END RolesWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

